/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.excesys.exsecs.om.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 投诉工单表
 *
 * @author weiyj
 * @date 2023-02-24 13:53:35
 */
@Data
@TableName("om_w_order_complain")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "投诉工单表")
public class OmWOrderComplain  extends Model<OmWOrderComplain> {

	/**
	 * 主键
	 */
	@TableId(type = IdType.AUTO)
	@Schema(description = "主键")
	private Integer cpId;

	/**
	 * 投诉人ID
	 */
	@Schema(description = "投诉人ID")
	private Long complainUserId;

	/**
	 * 投诉人
	 */
	@Schema(description = "投诉人")
	private String complainName;

	/**
	 * 投诉人电话
	 */
	@Schema(description = "投诉人电话")
	private String complainPhone;

	/**
	 * 投诉时间
	 */
	@Schema(description = "投诉时间")
	private LocalDateTime complainTime;

	/**
	 * 投诉的工单号
	 */
	@Schema(description = "投诉的工单号")
	private String orderNo;

	/**
	 * 投诉内容
	 */
	@Schema(description = "投诉内容")
	private String complainDesc;

	/**
	 * 投诉状态
	 */
	@Schema(description = "投诉状态")
	private String complainState;

	/**
	 * 反馈内容
	 */
	@Schema(description = "反馈内容")
	private String feedbackDesc;

	/**
	 * 反馈时间
	 */
	@Schema(description = "反馈时间")
	private LocalDateTime feedbackTime;

	/**
	 * 审批人ID
	 */
	@Schema(description = "审批人ID")
	private Long approveUserId;

	/**
	 * 审批时间
	 */
	@Schema(description = "审批时间")
	private LocalDateTime approveTime;

	/**
	 * 审批人姓名
	 */
	@Schema(description = "审批人姓名")
	private String approveUserName;

	/**
	 * 审批人电话
	 */
	@Schema(description = "审批人电话")
	private String approveUserPhone;

	/**
	 * 处理人ID
	 */
	@Schema(description = "处理人ID")
	private Long handleUserDeptId;

	/**
	 * 处理人ID
	 */
	@Schema(description = "处理人ID")
	private Long handleUserId;

	/**
	 * 处理人姓名
	 */
	@Schema(description = "处理人姓名")
	private String handleUserName;

	/**
	 * 处理人电话
	 */
	@Schema(description = "处理人电话")
	private String handleUserPhone;

	/**
	 * 处理时间
	 */
	@Schema(description = "处理时间")
	private LocalDateTime handleTime;

	/**
	 * 责任人ID
	 */
	@Schema(description = "责任人ID")
	private Long dutyUserId;

	/**
	 * 确认建议
	 */
	@Schema(description = "确认建议")
	private String confirmDesc;

	/**
	 * 确认时间
	 */
	@Schema(description = "确认时间")
	private LocalDateTime confirmTime;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新人")
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description="更新时间")
	private LocalDateTime updateTime;


}
